public class StringBufferDemo {
	public static void main(String[] args) {
		//字节数组的长度是16
		StringBuffer sb = new StringBuffer();
		sb.append(false);
		System.out.println(sb.capacity());
		System.out.println(sb.length());
		//sb.trimToSize();
//		System.out.println(sb.capacity());
//		System.out.println(sb.length());
		System.out.println(sb);
		//value = Arrays.copyOf(value, count);
		//System.arraycopy(value, 0, value, 0, count);
//		sb.setLength(9);
		System.out.println(sb.append(123));
		sb.setCharAt(0, 'F');
		System.out.println(sb.delete(2, 4));
		System.out.println(sb.reverse());
	}
}
